<%@page import="java.util.HashMap"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ page import="Servlets.*, java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>TICKET INFORMATION</title>
</head>
<body>
<%
String[] vals = null;
if(request.getParameter("result") != null)
	vals = ((String)request.getParameter("result")).split("\\$");

HashMap<String, String> airlineMap = new HashMap<String,String>();
airlineMap.put("UAALS","United AirLines");

%>

<table align="center" width="90%" border="2">
<tr ><td></td></tr>
<tr align="center" bordercolor="red"><td>    Flight Ticket Information     </td><td></td></tr>
<tr><td></td></tr>
<tr><td align="center"> Airlines : <h3><%= airlineMap.get(vals[1]) %></h3> </td><td> Flight Type : <%=vals[3] %></td></tr>
<tr><td> Departure Port : <%=vals[10] %></td><td> Arrival Port : <%=vals[11] %></td></tr>
<tr><td> Customer FirstName : <%=vals[5] %></td><td> Customer LastName : <%=vals[6] %></td><td> Customer Id : <%=vals[0] %></td></tr>
<tr><td> Departure Date : <%=vals[2] %></td><td> Arrival Date : <%=vals[8] %></td></tr>
<tr><td> Departure Time : <%=vals[7] %></td><td> Arrival Time : <%=vals[9] %></td></tr>
<tr><td></td></tr>
</table>
</body>
</html>